break; bout.write(buf, 0, n); } return bout.toByteArray(); } } }
} ins.close(); byte[] data = bout.toByteArray(); bout.close(); return data; } } }